/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package etherblocks.engine;

import java.util.HashMap;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;

/**
 *
 * @author Carl
 */
public class CustomProperties{

    public CustomProperties(){
        
    }
    private HashMap<String, Object> properties = new HashMap<String, Object>();
    
    public String getString(String key){
        return getValue(key).toString();
    }
    
    public boolean getBoolean(String key){
        return (Boolean) getValue(key);
    }
    
    public int getInteger(String key){
        return (Integer) getValue(key);
    }
    
    public float getFloat(String key){
        return (Float) getValue(key);
    }
    
    public Vector3f getVector3f(String key){
        return (Vector3f) getValue(key);
    }
    
    public ColorRGBA getColorRGBA(String key){
        return (ColorRGBA) getValue(key);
    }
    
    public Object getValue(String key){
        return properties.get(key);
    }
    
    public void setValue(String key, Object value){
        properties.put(key, value);
    }
}
